n = 0
numbers = [1,2,3,4]

for a in numbers:
    for b in numbers:
        for c in numbers:
            if(a != b and a != c and b != c):
                n += 1
                print(a,b,c)
print('由给定的四个数字总共可以组成互不相同的数字总共：%s 个' %(n))

